package com.atguigu.yygh.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @description: TODO
 * @author: 化一帆
 * @date: 2022/12/8 18:15
 * @version: v1.0
 */
@SpringBootApplication
@MapperScan(basePackages = "com.atguigu.yygh.order.mapper") //mp的mapper包扫描
@ComponentScan(basePackages = "com.atguigu") //扫描spring的组件
@EnableDiscoveryClient //nacos注册服务
@EnableFeignClients(basePackages = {"com.atguigu"})  //feign远程调用服务的接口
public class ServiceOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOrderApplication.class, args);
    }
}